#ifndef _BBCONTROLLER_H_
#define _BBCONTROLLER_H_

#include <map>

class BBCommander;

typedef std::map<int,BBCommander*>::iterator pCommandIterator;

class BBController
{
public:
	BBController(void);
	virtual ~BBController(void);
	virtual void addCommander(int tag,BBCommander* command,bool isCommit = false);
	virtual void removeCommand(int tag);
	virtual void executeCommand(int tag,float delay =0.0f);
	virtual void clear();
	BBCommander* getCommanderByTag(int tag);
protected:
	std::map<int,BBCommander*> m_pCommandList;
};



#endif //_BBCONTROLLER_H_